package com.zzw.bean;

/**
 * @author 赵志伟
 * @version 1.0
 */

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@SuppressWarnings({"all"})
public class Order {
    /*private Integer id;
    private String orderNo;         // 订单编号
    private String customerName;    // 客户名称
    private String contactPhone;    // 联系电话
    private String shippingAddress; // 收货地址
    private BigDecimal totalAmount; // 订单总金额
    private Integer status;         // 订单状态：0-待确认，1-已确认，2-已发货，3-已完成
    private Integer shippedQuantity;
    private String remark;          // 备注
    private Date createTime;        // 创建时间
    private Date updateTime;        // 更新时间
    private List<OrderItem> orderItems; // 订单项列表

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getShippedQuantity() {
        return shippedQuantity;
    }

    public void setShippedQuantity(Integer shippedQuantity) {
        this.shippedQuantity = shippedQuantity;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }*/

    /**
     * 订单id(bigint, 922亿亿, 配合auto_increment可无限自增
     */
    private Long id;
    /**
     * 订单编号(唯一,配合对账)
     */
    private String orderNo;
    /**
     * 设备表主键id(表与表的关联优先用主键id)
     */
    private Long deviceId;
    /**
     * 消费者id
     */
    private Long userId;
    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;
    /**
     * 订单状态(1未支付 2已支付 3已取消)
     */
    private String status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 设备所属顶级代理商id
     */
    private Long topAgentId;
    /**
     * 设备所属商户id
     */
    private Long agentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getTopAgentId() {
        return topAgentId;
    }

    public void setTopAgentId(Long topAgentId) {
        this.topAgentId = topAgentId;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }
}
